// 应用全局配置

// 默认开发环境
let baseApi = 'http://123.60.72.164'
let subDomain = '/rs-wms-server-dev'

if(process.env.NODE_ENV == 'production'){
	// 生产、测试
	// baseApi = 'http://10.88.128.200:9501' //测试
	baseApi ='https://jnwmsapp.cotticoffee.com'  //生产
	subDomain = '/rs-wms-pda'
}else {
  // baseApi ='https://jnwmsapp.cotticoffee.com'  //生产
  // subDomain = '/rs-wms-pda'
	// 开发
    // baseApi = 'http://10.136.20.150:8080'
    baseApi = 'http://127.0.0.1:8080'
	subDomain = ''
  // baseApi ='https://jnwmsapp.cotticoffee.com'  //生产
  // subDomain = '/rs-wms-pda'
}

module.exports = {
  baseUrl: baseApi + subDomain,
  // 应用信息
  appInfo: {
    // 应用名称
    name: "ruoyi-app",
    // 应用版本
    version: "1.0.0",
    // 应用logo
    logo: "/static/logo.png",
    // 官方网站
    site_url: "http://ruoyi.vip",
    // 政策协议
    agreements: [{
        title: "隐私政策",
        url: "https://ruoyi.vip/protocol.html"
      },
      {
        title: "用户服务协议",
        url: "https://ruoyi.vip/protocol.html"
      }
    ]
  }
}
